package com.quarkus.resource;

import com.quarkus.annotation.MyInterceptor;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java.util.List;

/**
 * @version v1.0
 * @Description: TODO(一句话描述该类的功能)
 * @Author: TongRui乀
 * @Date: 2020/12/20 3:28 下午
 */
@Path("produces")
public class ProducesResource {

    @Inject
    double PI;

    @Inject
    List<String> names;

    @MyInterceptor
    @GET
    public String test(){

        System.out.println(PI);

        names.forEach(System.out::println);

        return "SUCCESS";
    }
}
